package simulator.ui;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;

import javax.swing.JPanel;

/**
 * Basic welcome screen displayed on startup.
 * 
 * @author Kyle Loomis
 * 
 */
public class Welcome extends JPanel
{
   private static final long serialVersionUID = 1L;
   private static final Color defaultColor = new Color(100, 100, 100);
   private SimulationController controller = null;

   /**
    * Default controller.
    * 
    * @param controller
    *           the underlying simulation controller.
    */
   public Welcome(SimulationController controller)
   {
      super(true);
      this.controller = controller;
   }

   public void paintComponent(Graphics g)
   {
      super.paintComponent(g);

      g.setFont(new Font("Arial", Font.PLAIN, 12));
      g.setColor(defaultColor);
      g.drawString("To open a scenario, select Simulator->Open Scenario.", 10,
            30);
   }
}
